//
//  ClientManager.h
//  Soccer
//
//  Created by Hyun-Woong Kim on 09. 05. 06.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Match.h"
#import "InputProcessor.h"
#import "Layer.h"
#import "MiniMap.h"

/**
 ClientManager
 클라이언트 관리자
 */

@interface ClientManager : NSObject {
	// 프레임당 위치 확인 횟수
	int checksPerFrame;
	
	Match *match;
	InputProcessor *inputProcessor;
}

+ (ClientManager *)sharedManager;

@property(readonly) InputProcessor *inputProcessor;
@property(readonly) Match *match;

- (void)reset;
// 게임 시작, 서버로부터 정보를 받아서 경기 정보를 초기 세팅
- (void)startGameWithLayer:(Layer<MatchDelegate> *)layer;

- (void) InsertPlayer:(NSString *)name index:(int)index team:(int)team isMine:(Boolean)isMine;
- (void) InsertGoalKeeper:(int)team;
- (void) InsertBall;

@end
